#ifndef TSPLINE_H
#define TSPLINE_H

#include <QVector>

class TSpline
{
public:
    TSpline();
    ~TSpline();
    double getValue(double value);
    double getDerivativeValue(double value);
    double getSecondDerivativeValue(double value);
    void createSpline (const QVector<double>& x, const QVector<double>& f, const int n_, const double S0, const double Sn);
    double* a, *b, *c, *d;
private:
    int n;
    double* x;
    int getInterval (double value);
};

#endif // TSPLINE_H
